@extends('admin.layouts.app')
@section('css')
  <link href="{{asset('assets/plugins/responsive-table/css/rwd-table.min.css')}}" rel="stylesheet" type="text/css" media="screen">
@endsection
@section('content')


						<!-- Page-Title -->
						<div class="row">
							<div class="col-sm-12">
                               

								<h4 class="page-title">管理后台</h4>
								<ol class="breadcrumb">
									<li>
										<a href="{{url('zadmin')}}">塔台</a>
									</li>
									
									<li class="active">
										婚车品牌管理
									</li>
								</ol>
							</div>
						</div>
						
						
						
						<div class="row">
							<div class="col-sm-12">
								<div class="card-box">

									<div class="row">
			                        	<div class="col-sm-8">
			                        		<form role="form">
			                                    <div class="form-group contact-search m-b-30">
			                                    	<input type="text" id="search" class="form-control" placeholder="Search...">
			                                        <button type="submit" class="btn btn-white"><i class="fa fa-search"></i></button>
			                                    </div> <!-- form-group -->
			                                </form>
			                        	</div>
			                        	<div class="col-sm-4">
<button  class="btn btn-default btn-md waves-effect waves-light m-b-30 addModal" data-animation="fadein"                          	data-overlaySpeed="200" data-overlayColor="#36404a"><i class="md md-add"></i> 添加</button>
			                        	</div>
			                        </div>
@include('admin.common.error')

									<div class="table-rep-plugin">
										<div class="table-responsive" >
											<table  class="table  table-striped">
												<thead>
													<tr>
														<th>ID</th>
														
														
														<th>品牌名</th>
														<th>Logo</th>
														<th data-priority="3">操作</th>
														
													</tr>
												</thead>
												<tbody>
                        @foreach($list as $v)  
						<tr>
							<th>{{$v->id}}</th>								
													
							<td>{{$v->name}}</td>
							<th><img src="{{$v->img}}" width="50" /></th>
														
														
					<td>
						<a href="{{url('zadmin/car-brands/'.$v->id.'/edit')}}" class="btn btn-primary btn-sm">
						<span class="btn-label">
										<i class="md md-edit"></i>
										</span>编辑</a>

				<a class="btn btn-sm btn-danger" href="{{url('zadmin/car-brands',$v->id)}}" data-method="delete" 
  data-token="{{csrf_token()}}" data-confirm="确定删除吗?">
<span class="btn-label">
  <i class="md md-close"></i>
</span>删除</a>
													   </td>
														
													</tr>
                        @endforeach
													
												</tbody>
											</table>
										</div>
{{$list->links()}}
									</div>

								</div>
							</div>
						</div>
						


		

 @endsection 
               
         

    @section('js')
    <script type="text/javascript">
    	$('.addModal').on('click',function(){
    		$('#add-modal').modal('show');
    	});
    </script> 
       
    @endsection    

